<?php
return [
    'components' => [
        'db' => [
            'class' => 'yii\db\Connection',
            'dsn' => 'mysql:host=localhost;dbname=malasong',
            'username' => 'root',
            'password' => 'root123456',
            'charset' => 'utf8',
        ],
        'mailer' => [
            'class' => 'yii\swiftmailer\Mailer',
            'viewPath' => '@common/mail',
            // send all mails to a file by default. You have to set
            // 'useFileTransport' to false and configure a transport
            // for the mailer to send real emails.
            'useFileTransport' => true,
        ],
        // wechat 配置
        'wechat' => [
            'class' => 'thanatos\wechat\Wechat',
            /**
            'app_id' => 'wxe818c30a6f27af3e',
            'secret' => 'bd33cb857a1e512fd6c84174106c8232',
            'token' => 'dHVhYm5nemh1',
            'mch_id' => '1484495882',
            'key' => '5viyp3cd4cbg83s8nmlsa80qetu5hg6v',
            'sandbox' => false
             */
            'app_id' => 'wx6cdc7751f9029f4f',
            'secret' => '7ea13c7ffe0802bdcf21fcffdc33b2f9',
            'token' => 'dHVhYm5nemh1',
            'mch_id' => '1484495882',
            'key' => '5viyp3cd4cbg83s8nmlsa80qetu5hg6v',
            'sandbox' => false
        ],
    ],
];
